﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ext.Master" AutoEventWireup="true" CodeBehind="Controls.Grid.aspx.cs" Inherits="Demo.Grid.Controls_Grid" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <ext:GridPanel runat="server" ID="gridPanel" DataUrl="/common/GetPageData.ashx" Width="600" Height="300" Pagination="true"
                ShowRowNumberColumn="true" KeyField="物料ID" ShowSelectionColumn="false" SelectionMode="Multi" EnableEdit="true" PageSize="3" AutoPostBack="true"
                OnLoadPageData="gridPanel_LoadPageData">
                <Columns>
                    <ext:GridColumn HeaderText="物料编码" DataField="物料编码" Flex="1">
                        <EditorConfig Type="textfield" AllowBlank="false" />
                    </ext:GridColumn>
                    <ext:GridColumn HeaderText="物料名称" DataField="物料名称" Flex="1" Type="none">
                        <EditorConfig Type="textfield" AllowBlank="false" />
                    </ext:GridColumn>
                    <ext:GridColumn HeaderText="操作" Type="actioncolumn" Width="40">
                        <ActionItems>
                            <ext:GridColumnActionItem IconUrl="/icons/delete.png" Tooltip="删除" ActionName="删除" />
                        </ActionItems>
                    </ext:GridColumn>
                </Columns>
                <TriggerPostBackEvents RowCommand="true" RowSelectChanged="false" LoadPageData="true" />
            </ext:GridPanel>
            <ext:Button runat="server" ID="btnSubmit" Text="提交" Width="100" Height="40" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
